import Vue from 'vue'
import VueRouter from 'vue-router'
import Myhome1 from '../views/02/MyHome.vue'
import MyNews from '../views/02/MyNews.vue'
import Sports from '../views/02/Sports.vue'
import SportsHome from '../views/02/01/SportsHome.vue'
import Sports1 from '../views/02/01/Sports1.vue'
import Sports2 from '../views/02/01/Sports2.vue'
Vue.use(VueRouter)
const routes = [
    {
        path: '/',
        redirect: 'home1'
    },
    {
        path: '/home1',
        component: Myhome1
    },
    {
        path: '/mynews',
        component: MyNews
    },
    {
        path: '/sports',
        component: Sports,
        children: [
            {
                path: '',
                redirect: 'guonei'
            },
            {
                path: 'guonei',
                component: Sports1
            },
            {
                path: 'guowai',
                component: Sports2
            },
            {
                path: 'sportshome',
                component: SportsHome
            }
        ]
    }
]

const router = new VueRouter({
    routes: routes
})

export default router